package kordegi.forumsystem.mapper;

import kordegi.forumsystem.common.lang.Result;
import kordegi.forumsystem.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author kordegi
 * @date 2022.05.01 15:31
 * @Description
 */

@Repository
public interface UserMapper {
    User selectUser(Long id);

    int register(Long id, String username, String password, String email);

    int updateUser(User user);

    int deleteUser(Long id);

    User login(String username);

    List<User> queryAll();
}
